Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

255
Views
Android Studio Error "Unsupported class file major version 61"

I moved my Android Studio project from one computer to another computer and now I get this error:

"Unsupported class file major version 61" .

enter image description here

How can I fix this?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

class file major version 61 means that the class file you are trying to load has been compiled by Java 17 (and for Java 17+ only).

The Android toolchain only support only classes compiled for Java 11 (if the project is properly configured). So there is something wrong with the library you are trying to load.

As you don't give any details in your question what you are trying to do it is impossible to give you a more detailed answer.

over 4 years ago · Santiago Trujillo Report

0

With the help of @Robert answer,
I found out that the problem was with JAVA 17 and that the Gradle JDK in use was:
Android Studio java home version 17.0.1

I changed it to:
Android Studio default JDK version 11.0.10

enter image description here

Then everything worked like before...

You'll find the Gradle Settings under File > Project Structure...
enter image description here

...or through the Toolbar button: Project Structure...
enter image description here

Then click the Gradle Settings link. enter image description here

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!